export const searchConfig = {
  confirmButton: {
    text: '搜索'
  },
  cancelButton: {
    text: '重置'
  },
  formConfig: {
    inline: true
  },
  formItems: [
    {
      prop: 'account',
      label: '账号'
    },
    {
      prop: 'userName',
      label: '姓名'
    }
  ]
}
// 表格配置
export const tableConfig = {
  search: true,
  headerBtn: [
    {
      type: 'add',
      label: '新增'
      // svg:''
    }
  ],
  tableConfig: {
    border: true
  },
  tableColumns: [
    {
      prop: 'userNo',
      label: 'ID'
    },
    {
      prop: 'account',
      label: '账号'
    },
    {
      prop: 'userName',
      label: '姓名'
    },
    {
      prop: 'email',
      label: '邮箱'
    },
    {
      prop: 'userPhone',
      label: '电话'
    },
    {
      prop: 'status',
      label: '状态',
      slot: true
    },
    {
      prop: 'sex',
      label: '性别',
      func({ sex }) {
        return sex ? '男' : '女'
      }
    },
    {
      prop: 'edit',
      label: '操作',
      editType: true
    }
  ],
  editType: [
    {
      type: 'edit',
      label: '编辑'
    },
    {
      type: 'delete',
      label: '删除'
    },
    {
      type: 'preview',
      label: '查看'
    }
  ]
}
